package org.phoenixframework.api.teacher.message;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by IntelliJ IDEA.
 *
 * @author doublelifeke
 * Email: hautxxxyzjk@163.com
 * DateTime: 2021/7/4 17:16
 * Description:
 */
@Slf4j
@Component
@AllArgsConstructor
@RabbitListener(queues = "phoenix.order.cancel")
public class MessageReceiver {

    @RabbitHandler
    public void handle(Long orderId){
        log.info("process orderId:{}",orderId);
    }

}
